home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / OCI72 / OCIAPR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-18  |  4.5 KB  |  113 lines

  1. /*
  2.  * $Header: ociapr.h 7020200.1 95/02/15 18:37:30 cli Generic<base> $ 
  3.  */
  4.  
  5. /* Copyright (c) 1991 by Oracle Corporation */
  6. /*
  7.    NAME
  8.      ociapr.h
  9.    MODIFIED   (MM/DD/YY)
  10.     dchatter   02/08/95 -  olog call; drop onblon
  11.     dchatter   10/31/94 -  new functions for non-blocking oci
  12.     rkooi2     11/27/92 -  Changing datatypes to agree with ocidef.h 
  13.     rkooi2     10/26/92 -  More portability mods 
  14.     rkooi2     10/18/92 -  Changed to agree with oci.c 
  15.     sjain      03/16/92 -  Creation 
  16. */
  17. /*
  18.  *  Declare the OCI functions.
  19.  *  Prototype information is included.
  20.  *  Use this header for ANSI C compilers.
  21.  */
  22.  
  23. #ifndef OCIAPR
  24. #define OCIAPR
  25.  
  26. #include <oratypes.h>
  27. #include <ocidfn.h>
  28.  
  29.  
  30.  
  31. sword  obndra   (struct cda_def *cursor, text *sqlvar, sword sqlvl,
  32.                  ub1 *progv, sword progvl, sword ftype, sword scale,
  33.                  sb2 *indp, ub2 *alen, ub2 *arcode, ub4 maxsiz,
  34.                  ub4 *cursiz, text *fmt, sword fmtl, sword fmtt);
  35. sword  obndrn   (struct cda_def *cursor, sword sqlvn, ub1 *progv,
  36.                  sword progvl, sword ftype, sword scale, sb2 *indp,
  37.                  text *fmt, sword fmtl, sword fmtt);
  38. sword  obndrv   (struct cda_def *cursor, text *sqlvar, sword sqlvl,
  39.                  ub1 *progv, sword progvl, sword ftype, sword scale,
  40.                  sb2 *indp, text *fmt, sword fmtl, sword fmtt);
  41. sword  obreak   (struct cda_def *lda);
  42. sword  ocan     (struct cda_def *cursor);
  43. sword  oclose   (struct cda_def *cursor);
  44. sword  ocof     (struct cda_def *lda);
  45. sword  ocom     (struct cda_def *lda);
  46. sword  ocon     (struct cda_def *lda);
  47. sword  odefin   (struct cda_def *cursor, sword pos, ub1 *buf,
  48.                  sword bufl, sword ftype, sword scale, sb2 *indp,
  49.                  text *fmt, sword fmtl, sword fmtt, ub2 *rlen, ub2 *rcode);
  50. sword  odessp   (struct cda_def *cursor, text *objnam, size_t onlen,
  51.                  ub1 *rsv1, size_t rsv1ln, ub1 *rsv2, size_t rsv2ln,
  52.                  ub2 *ovrld, ub2 *pos, ub2 *level, text **argnam,
  53.                  ub2 *arnlen, ub2 *dtype, ub1 *defsup, ub1* mode,
  54.                  ub4 *dtsiz, sb2 *prec, sb2 *scale, ub1 *radix,
  55.                  ub4 *spare, ub4 *arrsiz);
  56. sword  odescr   (struct cda_def *cursor, sword pos, sb4 *dbsize,
  57.                  sb2 *dbtype, sb1 *cbuf, sb4 *cbufl, sb4 *dsize,
  58.                  sb2 *prec, sb2 *scale, sb2 *nullok);
  59. sword  oerhms   (struct cda_def *lda, sb2 rcode, text *buf,
  60.                  sword bufsiz);
  61. sword  oermsg   (sb2 rcode, text *buf);
  62. sword  oexec    (struct cda_def *cursor);
  63. sword  oexfet   (struct cda_def *cursor, ub4 nrows,
  64.                  sword cancel, sword exact);
  65. sword  oexn     (struct cda_def *cursor, sword iters, sword rowoff);
  66. sword  ofen     (struct cda_def *cursor, sword nrows);
  67. sword  ofetch   (struct cda_def *cursor);
  68. sword  oflng    (struct cda_def *cursor, sword pos, ub1 *buf,
  69.                  sb4 bufl, sword dtype, ub4 *retl, sb4 offset);
  70. sword  olog     (struct cda_def *lda, ub1* hda,
  71.                  text *uid, sword uidl,
  72.                  text *pswd, sword pswdl, 
  73.                  text *conn, sword connl, 
  74.                  ub4 mode);
  75. sword  ologof   (struct cda_def *lda);
  76. sword  oopen    (struct cda_def *cursor, struct cda_def *lda,
  77.                  text *dbn, sword dbnl, sword arsize,
  78.                  text *uid, sword uidl);
  79. sword  oparse   (struct cda_def *cursor, text *sqlstm, sb4 sqllen,
  80.                  sword defflg, ub4 lngflg);
  81. sword  orol     (struct cda_def *lda);
  82.  
  83.  
  84. void sqlld2     (struct cda_def *lda, text *cname, sb4 *cnlen);
  85. void sqllda     (struct cda_def *lda);
  86.  
  87. /* non-blocking functions */
  88.  
  89. sword onbset    (struct cda_def *lda ); 
  90. sword onbtst    (struct cda_def *lda ); 
  91. sword onbclr    (struct cda_def *lda ); 
  92. sword  oopt     (struct cda_def *cursor, sword rbopt, sword waitopt);
  93.  
  94.  
  95. /* older calls ; preferred equivalent calls above */
  96.  
  97. sword  oname    (struct cda_def *cursor, sword pos, sb1 *tbuf,
  98.                  sb2 *tbufl, sb1 *buf, sb2 *bufl);
  99. sword  orlon    (struct cda_def *lda, ub1 *hda, 
  100.                  text *uid, sword uidl, 
  101.                  text *pswd, sword pswdl, 
  102.                  sword audit);
  103. sword  olon     (struct cda_def *lda, text *uid, sword uidl,
  104.                  text *pswd, sword pswdl, sword audit);
  105. sword  osql3    (struct cda_def *cda, text *sqlstm, sword sqllen);
  106. sword  odsc     (struct cda_def *cursor, sword pos, sb2 *dbsize,
  107.                  sb2 *fsize, sb2 *rcode, sb2 *dtype, sb1 *buf,
  108.                  sb2 *bufl, sb2 *dsize);
  109.  
  110. #endif /* OCIAPR */
  111.  
  112.  
  113.